raar.world
Class RASimulation

java.lang.Object
  extended byjava.lang.Thread
      extended byraar.world.RASimulation
All Implemented Interfaces:
java.lang.Runnable

public class RASimulation
extends java.lang.Thread

Simulation control and executor system.


Field Summary
static int MIN_TIME
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RASimulation(RAWorld world)
           
RASimulation(RAWorld world, long n_runs)
           
 
Method Summary
 RAWorld getWorld()
           
 boolean pause()
           
 void rewind()
           
 void run()
           
 boolean running()
           
 void setOwner(RASimulation_Observer owner)
           
 boolean tryResetAgent(RAAgent a)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_TIME

public static int MIN_TIME
Constructor Detail

RASimulation

public RASimulation(RAWorld world)

RASimulation

public RASimulation(RAWorld world,
                    long n_runs)
Method Detail

getWorld

public RAWorld getWorld()

setOwner

public void setOwner(RASimulation_Observer owner)

run

public void run()

pause

public boolean pause()

rewind

public void rewind()
            throws RAException
Throws:
RAException

tryResetAgent

public boolean tryResetAgent(RAAgent a)

running

public boolean running()